package net.lab1024.sa.admin.module;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.security.Provider;
import java.security.Security;

@RestController
public class TestController {
    
    @GetMapping("/providers")
    public String listProviders() {
        StringBuilder sb = new StringBuilder();
        for (Provider provider : Security.getProviders()) {
            sb.append(provider.getName()).append("\n");
        }
        return sb.toString();
    }
}